package com.ld.security.server.admin.modules.msg.entity;

import com.ld.security.common.mybatis.anno.LabelKey;
import com.ld.security.common.mybatis.anno.LabelKeys;
import com.ld.security.common.mybatis.base.entity.*;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;


import com.ld.security.auth.common.sys.entity.SysUserEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.core.base.column.*;
import com.ld.security.common.mybatis.constant.SqlCondition;

@TableName("msg_group_user_rel")
@ApiModel("群用户关联")
@Data
public class MsgGroupUserRelEntity  extends SuperEntity
{


  @ApiModelProperty("用户编号")
  @SqlKey(SqlCondition.eq)
  @LabelKeys(value = SysUserEntity.class,labels = {
          @LabelKey(sourceKey = "label",targetKey = "userName")
  })
    private String userId;






  @ApiModelProperty("群编号")
  @SqlKey(SqlCondition.eq)
  @LabelKeys(value = MsgGroupEntity.class,labels = {
          @LabelKey(sourceKey = "label",targetKey = "groupName")
  })
    private String groupId;



  @ApiModelProperty("用户名称")
  @SqlKey(SqlCondition.eq)
  private String userName;


  @ApiModelProperty("群组名称")
  @SqlKey(SqlCondition.eq)
  private String groupName;





        }
